using FluentNHibernate.Mapping;
using RMH.Entities;

namespace RMH.DataAccess.Mappings
{
    public class PaymentMap: ClassMap<Payment>
    {
        public PaymentMap()
        {
            Id(x => x.Id);
            Map(x => x.Type);
            Map(x => x.Method);
            Map(x => x.BillingDate);
            Map(x => x.ReceivedDate);
            Map(x => x.CheckNumber);
            Map(x => x.Amount);
            HasOne(x => x.Stay);
        }
    }
}